<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>WeAdmin 后台管理</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"
    />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/public/static/css/font.css" />
    <link rel="stylesheet" href="/public/static/css/weadmin.css" />
    <script
      type="text/javascript"
      src="/public/lib/layui/layui.js"
      charset="utf-8"
    ></script>
  </head>

  <body>
    <!-- 顶部开始 -->
    <div class="container">
      <div class="logo">
        <a href="/admin">某某医疗管理系统</a>
      </div>
      <div class="left_open">
        <!-- <i title="展开左侧栏" class="iconfont">&#xe699;</i> -->
        <i title="展开左侧栏" class="layui-icon layui-icon-shrink-right"></i>
      </div>
      <ul class="layui-nav left fast-add" lay-filter="">
        <li class="layui-nav-item">
          <a href="javascript:;">+新增</a>
          <dl class="layui-nav-child">
            <!-- 二级菜单 -->
            <dd>
              <a onclick="WeAdminShow('资讯','https://www.baidu.com/')"
                ><i class="layui-icon layui-icon-list"></i>资讯</a
              >
            </dd>
            <dd>
              <a onclick="WeAdminShow('图片','http://www.baidu.com')"
                ><i class="layui-icon layui-icon-picture-fine"></i>图片</a
              >
            </dd>
            <dd>
              <a onclick="WeAdminShow('用户','https://www.jiuwei.com/')"
                ><i class="layui-icon layui-icon-user"></i>用户</a
              >
            </dd>
          </dl>
        </li>
      </ul>
      <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
          <a href="javascript:;"><%- user.username %></a>
          <dl class="layui-nav-child">
            <!-- 二级菜单 -->
            <dd>
              <a
                onclick="WeAdminShow('个人信息','/admin/users/userlist/edit/<%- user.userid %>')"
                >个人信息</a
              >
            </dd>
            <dd>
              <a onclick="WeAdminShow('切换帐号','./login.html')">切换帐号</a>
            </dd>
            <dd>
              <a class="loginout" href="javascript:;">退出</a>
            </dd>
          </dl>
        </li>
        <li class="layui-nav-item to-index">
          <a href="https://www.jiuwei.com/" target="_blank">前台首页</a>
        </li>
      </ul>
    </div>
    <!-- 顶部结束 -->
    <!-- 中部开始 -->
    <!-- 左侧菜单开始 -->
    <div class="left-nav">
      <div id="side-nav">
        <ul id="nav">
          <li>
            <a href="javascript:;">
              <i class="iconfont">&#xe6b8;</i>
              <cite>用户管理</cite>
              <i class="iconfont nav_right">&#xe697;</i>
            </a>
            <ul class="sub-menu">
              <li>
                <a _href="/admin/users/userlist">
                  <i class="iconfont">&#xe6a7;</i>
                  <cite>用户列表</cite>
                </a>
              </li>
              <li>
                <a _href="/admin/users/rolelist">
                  <i class="iconfont">&#xe6a7;</i>
                  <cite>角色管理</cite>
                </a>
              </li>
              <li>
                <a _href="/admin/users/authlist">
                  <i class="iconfont">&#xe6a7;</i>
                  <cite>权限管理</cite>
                </a>
              </li>
            </ul>
          </li>
          <li>
            <a href="javascript:;">
              <i class="iconfont">&#xe705;</i>
              <cite>新闻管理</cite>
              <i class="iconfont nav_right">&#xe697;</i>
            </a>
            <ul class="sub-menu">
              <li>
                <a _href="/admin/news">
                  <i class="iconfont">&#xe6a7;</i>
                  <cite>新闻列表</cite>
                </a>
              </li>
              <li>
                <a _href="/admin/news/news_category">
                  <i class="iconfont">&#xe6a7;</i>
                  <cite>分类管理</cite>
                </a>
              </li>
            </ul>
          </li>
          <li>
            <a href="javascript:;">
              <i class="iconfont">&#xe6b8;</i>
              <cite>医生管理</cite>
              <i class="iconfont nav_right">&#xe697;</i>
            </a>
            <ul class="sub-menu">
              <li>
                <a _href="/admin/doctors/doctorslist">
                  <i class="iconfont">&#xe6a7;</i>
                  <cite>医生信息管理</cite>
                </a>
              </li>
              <li>
                <a _href="/admin/doctors/categorylist">
                  <i class="iconfont">&#xe6a7;</i>
                  <cite>科室管理</cite>
                </a>
              </li>
              <li>
                <a _href="/admin/doctors/medicineslist">
                  <i class="iconfont">&#xe6a7;</i>
                  <cite>药品管理</cite>
                </a>
              </li>
            </ul>
          </li>
          <li>
            <a href="javascript:;">
              <i class="iconfont">&#xe6b8;</i>
              <cite>患者挂号管理</cite>
              <i class="iconfont nav_right">&#xe697;</i>
            </a>
            <ul class="sub-menu">
              <li>
                <a _href="/admin/records">
                  <i class="iconfont">&#xe6a7;</i>
                  <cite>挂号列表</cite>
                </a>
              </li>
            </ul>
          </li>
          <li>
            <a href="javascript:;">
              <i class="layui-icon">&#xe629;</i>
              <cite>系统统计</cite>
              <i class="iconfont nav_right">&#xe697;</i>
            </a>
            <ul class="sub-menu">
              <li>
                <a _href="/admin/statistics">
                  <i class="iconfont">&#xe6a7;</i>
                  <cite>挂号统计</cite>
                </a>
              </li>
            </ul>
          </li>
        </ul>
      </div>
    </div>
    <!-- <div class="x-slide_left"></div> -->
    <!-- 左侧菜单结束 -->
    <!-- 右侧主体开始 -->
    <div class="page-content">
      <div
        class="layui-tab tab"
        lay-filter="wenav_tab"
        id="WeTabTip"
        lay-allowclose="true"
      >
        <ul class="layui-tab-title" id="tabName">
          <li>我的桌面</li>
        </ul>
        <div class="layui-tab-content">
          <div class="layui-tab-item layui-show">
            <iframe
              src="/public/pages/welcome.html"
              frameborder="0"
              scrolling="yes"
              class="weIframe"
            ></iframe>
          </div>
        </div>
      </div>
    </div>
    <div class="page-content-bg"></div>
    <!-- 右侧主体结束 -->
    <!-- 中部结束 -->
    <!-- 底部开始 -->
    <div class="footer">
      <div class="copyright">
        Copyright ©2020 WeAdmin All Rights Reserved
      </div>
    </div>
    <!-- 底部结束 -->
    <script type="text/javascript">
      layui
        .config({
          base: '/public/static/js/',
          version: '101100',
        })
        .extend({
          //设定模块别名
          admin: 'admin',
          menu: 'menu',
        })
      layui.use(['jquery', 'admin', 'menu', 'layer'], function () {
        var $ = layui.jquery,
          admin = layui.admin,
          menu = layui.menu,
          layer = layui.layer

        $('.loginout').click(function () {
          layer.confirm(
            '确认退出？',
            {
              btn: ['是', '否'], //可以无限个按钮
            },
            function (index, layero) {
              //按钮【按钮一】的回调
              console.log(index)
              window.location.href = '/rl/logout'
            },
            function (index) {
              //按钮【按钮二】的回调
              console.log(index)
            }
          )

          return false
        })
      })
    </script>
  </body>
  <!--Tab菜单右键弹出菜单-->
  <ul class="rightMenu" id="rightMenu">
    <li data-type="fresh">刷新</li>
    <li data-type="current">关闭当前</li>
    <li data-type="other">关闭其它</li>
    <li data-type="all">关闭所有</li>
  </ul>
</html>
